package com.core.zyyz.amc.modules.domain;

import java.io.Serializable;
import java.util.List;
import java.util.Set;

public class PTEUser implements Serializable {
    private static final long serialVersionUID = -7435661490052702171L;
    private String userCode;
    private String userName;
    private String layout;
    private Integer pageSize;
    private String theme;
    private String language;
    private String defaultRole;
    private String defaultRoleName;
    private List<PTERole> roles;
    private Set<String> roleCodes;
    private String allRoleName;
    private String menuType;
    private String skinType;
    private Integer passwordErrorCount = 0;
    private Boolean lock = false;
    private String lockTime;
    private Boolean isOverdue;
    private String image;
    private Integer remainderDays;
    private String loginType;
    private String loginOrigin;

    public PTEUser(String userCode) {
        this.userCode = userCode;
    }

    public String getUserCode() {
        return this.userCode;
    }

    public String getUserName() {
        return this.userName;
    }

    public String getLayout() {
        return this.layout;
    }

    public Integer getPageSize() {
        return this.pageSize;
    }

    public String getTheme() {
        return this.theme;
    }

    public String getLanguage() {
        return this.language;
    }

    public String getDefaultRole() {
        return this.defaultRole;
    }

    public String getDefaultRoleName() {
        return this.defaultRoleName;
    }

    public List<PTERole> getRoles() {
        return this.roles;
    }

    public Set<String> getRoleCodes() {
        return this.roleCodes;
    }

    public String getAllRoleName() {
        return this.allRoleName;
    }

    public String getMenuType() {
        return this.menuType;
    }

    public String getSkinType() {
        return this.skinType;
    }

    public Integer getPasswordErrorCount() {
        return this.passwordErrorCount;
    }

    public Boolean getLock() {
        return this.lock;
    }

    public String getLockTime() {
        return this.lockTime;
    }

    public Boolean getIsOverdue() {
        return this.isOverdue;
    }

    public String getImage() {
        return this.image;
    }

    public Integer getRemainderDays() {
        return this.remainderDays;
    }

    public String getLoginType() {
        return this.loginType;
    }

    public String getLoginOrigin() {
        return this.loginOrigin;
    }

    public void setUserCode(final String userCode) {
        this.userCode = userCode;
    }

    public void setUserName(final String userName) {
        this.userName = userName;
    }

    public void setLayout(final String layout) {
        this.layout = layout;
    }

    public void setPageSize(final Integer pageSize) {
        this.pageSize = pageSize;
    }

    public void setTheme(final String theme) {
        this.theme = theme;
    }

    public void setLanguage(final String language) {
        this.language = language;
    }

    public void setDefaultRole(final String defaultRole) {
        this.defaultRole = defaultRole;
    }

    public void setDefaultRoleName(final String defaultRoleName) {
        this.defaultRoleName = defaultRoleName;
    }

    public void setRoles(final List<PTERole> roles) {
        this.roles = roles;
    }

    public void setRoleCodes(final Set<String> roleCodes) {
        this.roleCodes = roleCodes;
    }

    public void setAllRoleName(final String allRoleName) {
        this.allRoleName = allRoleName;
    }

    public void setMenuType(final String menuType) {
        this.menuType = menuType;
    }

    public void setSkinType(final String skinType) {
        this.skinType = skinType;
    }

    public void setPasswordErrorCount(final Integer passwordErrorCount) {
        this.passwordErrorCount = passwordErrorCount;
    }

    public void setLock(final Boolean lock) {
        this.lock = lock;
    }

    public void setLockTime(final String lockTime) {
        this.lockTime = lockTime;
    }

    public void setIsOverdue(final Boolean isOverdue) {
        this.isOverdue = isOverdue;
    }

    public void setImage(final String image) {
        this.image = image;
    }

    public void setRemainderDays(final Integer remainderDays) {
        this.remainderDays = remainderDays;
    }

    public void setLoginType(final String loginType) {
        this.loginType = loginType;
    }

    public void setLoginOrigin(final String loginOrigin) {
        this.loginOrigin = loginOrigin;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof PTEUser)) {
            return false;
        } else {
            PTEUser other = (PTEUser)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label263: {
                    Object this$userCode = this.getUserCode();
                    Object other$userCode = other.getUserCode();
                    if (this$userCode == null) {
                        if (other$userCode == null) {
                            break label263;
                        }
                    } else if (this$userCode.equals(other$userCode)) {
                        break label263;
                    }

                    return false;
                }

                Object this$userName = this.getUserName();
                Object other$userName = other.getUserName();
                if (this$userName == null) {
                    if (other$userName != null) {
                        return false;
                    }
                } else if (!this$userName.equals(other$userName)) {
                    return false;
                }

                label249: {
                    Object this$layout = this.getLayout();
                    Object other$layout = other.getLayout();
                    if (this$layout == null) {
                        if (other$layout == null) {
                            break label249;
                        }
                    } else if (this$layout.equals(other$layout)) {
                        break label249;
                    }

                    return false;
                }

                Object this$pageSize = this.getPageSize();
                Object other$pageSize = other.getPageSize();
                if (this$pageSize == null) {
                    if (other$pageSize != null) {
                        return false;
                    }
                } else if (!this$pageSize.equals(other$pageSize)) {
                    return false;
                }

                label235: {
                    Object this$theme = this.getTheme();
                    Object other$theme = other.getTheme();
                    if (this$theme == null) {
                        if (other$theme == null) {
                            break label235;
                        }
                    } else if (this$theme.equals(other$theme)) {
                        break label235;
                    }

                    return false;
                }

                Object this$language = this.getLanguage();
                Object other$language = other.getLanguage();
                if (this$language == null) {
                    if (other$language != null) {
                        return false;
                    }
                } else if (!this$language.equals(other$language)) {
                    return false;
                }

                label221: {
                    Object this$defaultRole = this.getDefaultRole();
                    Object other$defaultRole = other.getDefaultRole();
                    if (this$defaultRole == null) {
                        if (other$defaultRole == null) {
                            break label221;
                        }
                    } else if (this$defaultRole.equals(other$defaultRole)) {
                        break label221;
                    }

                    return false;
                }

                label214: {
                    Object this$defaultRoleName = this.getDefaultRoleName();
                    Object other$defaultRoleName = other.getDefaultRoleName();
                    if (this$defaultRoleName == null) {
                        if (other$defaultRoleName == null) {
                            break label214;
                        }
                    } else if (this$defaultRoleName.equals(other$defaultRoleName)) {
                        break label214;
                    }

                    return false;
                }

                Object this$roles = this.getRoles();
                Object other$roles = other.getRoles();
                if (this$roles == null) {
                    if (other$roles != null) {
                        return false;
                    }
                } else if (!this$roles.equals(other$roles)) {
                    return false;
                }

                label200: {
                    Object this$roleCodes = this.getRoleCodes();
                    Object other$roleCodes = other.getRoleCodes();
                    if (this$roleCodes == null) {
                        if (other$roleCodes == null) {
                            break label200;
                        }
                    } else if (this$roleCodes.equals(other$roleCodes)) {
                        break label200;
                    }

                    return false;
                }

                label193: {
                    Object this$allRoleName = this.getAllRoleName();
                    Object other$allRoleName = other.getAllRoleName();
                    if (this$allRoleName == null) {
                        if (other$allRoleName == null) {
                            break label193;
                        }
                    } else if (this$allRoleName.equals(other$allRoleName)) {
                        break label193;
                    }

                    return false;
                }

                Object this$menuType = this.getMenuType();
                Object other$menuType = other.getMenuType();
                if (this$menuType == null) {
                    if (other$menuType != null) {
                        return false;
                    }
                } else if (!this$menuType.equals(other$menuType)) {
                    return false;
                }

                Object this$skinType = this.getSkinType();
                Object other$skinType = other.getSkinType();
                if (this$skinType == null) {
                    if (other$skinType != null) {
                        return false;
                    }
                } else if (!this$skinType.equals(other$skinType)) {
                    return false;
                }

                label172: {
                    Object this$passwordErrorCount = this.getPasswordErrorCount();
                    Object other$passwordErrorCount = other.getPasswordErrorCount();
                    if (this$passwordErrorCount == null) {
                        if (other$passwordErrorCount == null) {
                            break label172;
                        }
                    } else if (this$passwordErrorCount.equals(other$passwordErrorCount)) {
                        break label172;
                    }

                    return false;
                }

                Object this$lock = this.getLock();
                Object other$lock = other.getLock();
                if (this$lock == null) {
                    if (other$lock != null) {
                        return false;
                    }
                } else if (!this$lock.equals(other$lock)) {
                    return false;
                }

                Object this$lockTime = this.getLockTime();
                Object other$lockTime = other.getLockTime();
                if (this$lockTime == null) {
                    if (other$lockTime != null) {
                        return false;
                    }
                } else if (!this$lockTime.equals(other$lockTime)) {
                    return false;
                }

                label151: {
                    Object this$isOverdue = this.getIsOverdue();
                    Object other$isOverdue = other.getIsOverdue();
                    if (this$isOverdue == null) {
                        if (other$isOverdue == null) {
                            break label151;
                        }
                    } else if (this$isOverdue.equals(other$isOverdue)) {
                        break label151;
                    }

                    return false;
                }

                Object this$image = this.getImage();
                Object other$image = other.getImage();
                if (this$image == null) {
                    if (other$image != null) {
                        return false;
                    }
                } else if (!this$image.equals(other$image)) {
                    return false;
                }

                label137: {
                    Object this$remainderDays = this.getRemainderDays();
                    Object other$remainderDays = other.getRemainderDays();
                    if (this$remainderDays == null) {
                        if (other$remainderDays == null) {
                            break label137;
                        }
                    } else if (this$remainderDays.equals(other$remainderDays)) {
                        break label137;
                    }

                    return false;
                }

                Object this$loginType = this.getLoginType();
                Object other$loginType = other.getLoginType();
                if (this$loginType == null) {
                    if (other$loginType != null) {
                        return false;
                    }
                } else if (!this$loginType.equals(other$loginType)) {
                    return false;
                }

                Object this$loginOrigin = this.getLoginOrigin();
                Object other$loginOrigin = other.getLoginOrigin();
                if (this$loginOrigin == null) {
                    if (other$loginOrigin == null) {
                        return true;
                    }
                } else if (this$loginOrigin.equals(other$loginOrigin)) {
                    return true;
                }

                return false;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof PTEUser;
    }

//    public int hashCode() {
//        int PRIME = true;
//        int result = 1;
//        Object $userCode = this.getUserCode();
//        int result = result * 59 + ($userCode == null ? 43 : $userCode.hashCode());
//        Object $userName = this.getUserName();
//        result = result * 59 + ($userName == null ? 43 : $userName.hashCode());
//        Object $layout = this.getLayout();
//        result = result * 59 + ($layout == null ? 43 : $layout.hashCode());
//        Object $pageSize = this.getPageSize();
//        result = result * 59 + ($pageSize == null ? 43 : $pageSize.hashCode());
//        Object $theme = this.getTheme();
//        result = result * 59 + ($theme == null ? 43 : $theme.hashCode());
//        Object $language = this.getLanguage();
//        result = result * 59 + ($language == null ? 43 : $language.hashCode());
//        Object $defaultRole = this.getDefaultRole();
//        result = result * 59 + ($defaultRole == null ? 43 : $defaultRole.hashCode());
//        Object $defaultRoleName = this.getDefaultRoleName();
//        result = result * 59 + ($defaultRoleName == null ? 43 : $defaultRoleName.hashCode());
//        Object $roles = this.getRoles();
//        result = result * 59 + ($roles == null ? 43 : $roles.hashCode());
//        Object $roleCodes = this.getRoleCodes();
//        result = result * 59 + ($roleCodes == null ? 43 : $roleCodes.hashCode());
//        Object $allRoleName = this.getAllRoleName();
//        result = result * 59 + ($allRoleName == null ? 43 : $allRoleName.hashCode());
//        Object $menuType = this.getMenuType();
//        result = result * 59 + ($menuType == null ? 43 : $menuType.hashCode());
//        Object $skinType = this.getSkinType();
//        result = result * 59 + ($skinType == null ? 43 : $skinType.hashCode());
//        Object $passwordErrorCount = this.getPasswordErrorCount();
//        result = result * 59 + ($passwordErrorCount == null ? 43 : $passwordErrorCount.hashCode());
//        Object $lock = this.getLock();
//        result = result * 59 + ($lock == null ? 43 : $lock.hashCode());
//        Object $lockTime = this.getLockTime();
//        result = result * 59 + ($lockTime == null ? 43 : $lockTime.hashCode());
//        Object $isOverdue = this.getIsOverdue();
//        result = result * 59 + ($isOverdue == null ? 43 : $isOverdue.hashCode());
//        Object $image = this.getImage();
//        result = result * 59 + ($image == null ? 43 : $image.hashCode());
//        Object $remainderDays = this.getRemainderDays();
//        result = result * 59 + ($remainderDays == null ? 43 : $remainderDays.hashCode());
//        Object $loginType = this.getLoginType();
//        result = result * 59 + ($loginType == null ? 43 : $loginType.hashCode());
//        Object $loginOrigin = this.getLoginOrigin();
//        result = result * 59 + ($loginOrigin == null ? 43 : $loginOrigin.hashCode());
//        return result;
//    }

    public String toString() {
        return "PTEUser(userCode=" + this.getUserCode() + ", userName=" + this.getUserName() + ", layout=" + this.getLayout() + ", pageSize=" + this.getPageSize() + ", theme=" + this.getTheme() + ", language=" + this.getLanguage() + ", defaultRole=" + this.getDefaultRole() + ", defaultRoleName=" + this.getDefaultRoleName() + ", roles=" + this.getRoles() + ", roleCodes=" + this.getRoleCodes() + ", allRoleName=" + this.getAllRoleName() + ", menuType=" + this.getMenuType() + ", skinType=" + this.getSkinType() + ", passwordErrorCount=" + this.getPasswordErrorCount() + ", lock=" + this.getLock() + ", lockTime=" + this.getLockTime() + ", isOverdue=" + this.getIsOverdue() + ", image=" + this.getImage() + ", remainderDays=" + this.getRemainderDays() + ", loginType=" + this.getLoginType() + ", loginOrigin=" + this.getLoginOrigin() + ")";
    }

    public PTEUser() {
    }
}

